package com.woniuxy.background.service.impl;

import com.woniuxy.background.dao.TsMapper;
import com.woniuxy.background.pojo.Ts;
import com.woniuxy.background.service.TsService;
import com.woniuxy.background.vo.TsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TsServiceImpl implements TsService {

    @Autowired
    private TsMapper tsMapper;

    @Override
    public int deleteByPrimaryKey(Integer tid) {
        return tsMapper.deleteByPrimaryKey(tid);
    }

    @Override
    public List<Ts> queryTsByPage(Integer currentPage, Integer pageSize, TsVO vo) {
        return tsMapper.queryTsByPage(currentPage,pageSize,vo);
    }


    @Override
    public int updateByPrimaryKeySelective(Ts record) {
        return tsMapper.updateByPrimaryKeySelective(record);
    }
}
